<template>
	<view class="page">
		<!-- <u-swiper :list="list2" keyName="image" showTitle :autoplay="false" circular :title="true" :effect3d="true">
		</u-swiper> -->
		<!-- <view>
			<button type="default" @click="register">登录</button>
		</view> -->
		<view>
			<button type="default" @click="Jump(0)">跳转 aspiration 页面</button>
		</view>

		<view>
			<button type="default" @click="Jump(1)">跳转login登录</button>
		</view>
		<view>
			<button type="default" @click="Jump(2)">跳转 friend 页面</button>
		</view>
	</view>


</template>

<script>
	import {
		to
	} from "@/common/js/uilt/index.js"

	export default {
		data() {
			return {}
		},
		created() {
			// getApp().globalData
		},
		onLoad() {
			
		},
		onShow() {
			// let pages = getCurrentPages()
			// console.log('当前的页面栈第一个页面的路由为：', pages)
			// uni.reLaunch();
		},
		methods: {
			Jump(type) {
				switch (type) {
					case 0:
						to('/SubPacKages/aspiration/aspiration')
						break;
					case 1:
						to('/SubPacKages/login/login')
						break;
					case 2:
						uni.switchTab({
							url: "/pages/friend/friend"
						})
						break
				}


			}

		}
	}
</script>

<style lang="scss" scoped>

</style>
